package org.soretro.portfolio.view.pages
{
	import com.greensock.TweenLite;
	
	public class WebWorkMediator extends PagesMediator
	{
		[Inject]
		public var view:WebWorkView;
		
		override public function onRegister():void
		{
			view.alpha = 0;
			TweenLite.to( view, 2, { alpha:1 } );
			super.onRegister();
		}
		
		override public function preRegister():void {
			super.preRegister();
		}
		
		override public function preRemove():void {
			super.preRemove();
			TweenLite.to( view, 0.2, { alpha:0 } );
		}
	}
}